package com.rainbow.micro.example.dto.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rainbow.common.core.entity.PageBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* 
*
* @author rainbow
* 邮箱  1335157415@qq.com
* @date 2022-04-30 15:10:42
*/
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "查询参数")
public class RoleQueryReq extends PageBase{

	/**
	* 
	*/
	@ApiModelProperty(value = "",required = true,position=0)
	private Integer id;
	/**
	* 角色id
	*/
	@ApiModelProperty(value = "角色id",required = false,position=1)
	private String roleId;
	/**
	* 角色名称
	*/
	@ApiModelProperty(value = "角色名称",required = false,position=2)
	private String name;
	/**
	* 角色描述
	*/
	@ApiModelProperty(value = "角色描述",required = false,position=3)
	private String description;
	/**
	* 状态：1有效；0删除
	*/
	@ApiModelProperty(value = "状态：1有效；0删除",required = false,position=4)
	private Integer status;
	/**
	* 创建时间
	*/
	@ApiModelProperty(value = "创建时间",required = false,position=5)
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**
	* 更新时间
	*/
	@ApiModelProperty(value = "更新时间",required = false,position=6)
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**
	* 创建人
	*/
	@ApiModelProperty(value = "创建人")
	private String creator;
	/**
	* 更新人
	*/
	@ApiModelProperty(value = "更新人")
	private String updater;
	/**
	* 数据删除标识
	*/
	@ApiModelProperty(value = "数据删除标识")
	private Boolean logicDelete;
}
